#include <GL/glut.h>
#include <unistd.h>
#include <time.h>
#include <stdlib.h>
#include "include/Callbacks.h"

using namespace std;

int main(int argc, char* argv[])
{
	glutInit(&argc, argv);

	Callbacks::traitementInit();
	
	glutInitWindowSize(Callbacks::largeur, Callbacks::hauteur);
	glutInitWindowPosition(0, 0);
	glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE);
	glutCreateWindow("Inpainting");
	glutDisplayFunc(Callbacks::affichage);
	glutMouseFunc(Callbacks::souris) ;
	glutReshapeFunc(Callbacks::redim);
	glutKeyboardFunc(Callbacks::clavier);
	glutMotionFunc(Callbacks::mouvement);
	glutPassiveMotionFunc(Callbacks::mouvementPassif);
	
	Callbacks::initGL();
	srand ( time(NULL) );
	

	glutMainLoop();
	return 0;
}


